<?php
/*
 * 入口文件
 * 
 * */

 session_start();
 header("content='text/html charset=utf8'");
 date_default_timezone_set('Asia/Shanghai');
 define("DOCUMENT_ROOT",dirname(__FILE__)."/");
 define("DOCUMENT_STYLE","style/");
 
 //error_reporting(0);  //屏蔽所有错误 //shield error
 error_reporting(E_ERROR | E_WARNING | E_PARSE);
  
 require_once("inc/config/config.php");
 require_once("inc/class/db.class.php");
 require_once("inc/class/log.class.php");
 require_once("inc/function/sys.function.php");
 
 //实例化数据库
 $db = new DB($config['db_host'], $config['db_user'], $config['db_pwd'], $config['db_name'],$config['db_char_set']);
 
// 设置日志文件单个文件大小
 Log::set_size(LOG_SIZE); 
                       
 //设置默认控制器
 $M = Is_default($_GET['m']);
 $C = Is_default($_GET['c'],2);
 $A = Is_default($_GET['a'],3);
 
 $cls = N_Action($M, $C, $A);
 $cls->$A();
 
 
 
 
 /***
         搞计算机的上辈子都是身怀绝技的路边乞丐,伤不起啊;
         男女比例8:1 有木有;
***/

?>